package com.hong.spring.aop;

import com.hong.spring.aop.service.UserService;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @Auther: csh
 * @Date: 2020/7/14 16:46
 * @Description:基于xml的aop测试
 */
public class SpringAopXmlApp {
    public static void main(String[] args) {
        ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext("classpath:aop/spring-aop.xml");
        UserService userService = ctx.getBean(UserService.class);
        userService.login("hong","123456");
      //  userService.register("hong2","123456");
        ctx.close();
    }
}
